/*
 * @Author: i@douxuefeng.cn
 * @Date: 2021-12-18 15:46:14
 * @LastEditTime: 2021-12-20 00:21:32
 * @LastEditors: i@douxuefeng.cn
 * @Description:
 * @FilePath: \mountain\main.go
 */
package main

import (
	"embed"

	"gitee.com/douxuefeng/go-im/app"
)

//go:embed config/*
var f embed.FS

func init() {
	// 将配置文件打包到应用里
	var err error
	fs, err := f.Open("config/config.yml")
	if err != nil {
		panic(err)
	}
	app.Config = fs
	fs.Close()
}

func main() {
	app.StartApp()
}
